// 以前 token 令牌，如果存到了本地，每一次都写这么长，太麻烦
// localStorage.setItem(键， 值)
// localStorage.getItem(键)
// localStorage.removeItem(键)

const KEY = "hm_element_pc";

// 获取
export const getToken = () => {
  return localStorage.getItem(KEY);
};

// 设置
export const setToken = (data) => {
  localStorage.setItem(KEY, data);
};

// 删除
export const delToken = () => {
  localStorage.removeItem(KEY);
};
